let mongo = require('../../../db/mongo');

// 主函数
(async function main() {
    await mongo.initMongo();
    create_mongo();
})();

// 导入测试数据
function create_mongo() {
    // 往 word 集合中插入若干条数据
    mongo.client.db('kaoyanbang_db').collection('word').insertMany([
        {
            "id": 1,
            "word": "favourite",
            "meaningList": ["[形] 特别受喜爱的", "[名] 特别喜爱的事物"],
            "exampleSentenceList": [
                {
                    "english": "What's your favourite color?",
                    "chinese": "你最喜欢的颜色是什么？"
                }, {
                    "english": "Apples are his favourite.",
                    "chinese": "他特别喜欢苹果。"
                }, {
                    "english": "Drawing is my favourite lesson.",
                    "chinese": "画图画是我最喜欢的课程。"
                }
            ]
        }, {
            "id": 2,
            "word": "happy",
            "meaningList": ["[形] 快乐的", "[形] 幸福的"],
            "exampleSentenceList": [
                {
                    "english": "She looks very happy today.",
                    "chinese": "她今天看起来很开心。"
                }, {
                    "english": "They are happy to be together.",
                    "chinese": "他们在一起很开心。"
                }, {
                    "english": "Being with family makes me happy.",
                    "chinese": "和家人在一起让我感到幸福。"
                }
            ]
        }, {
            "id": 3,
            "word": "sad",
            "meaningList": ["[形] 伤心的", "[形] 悲伤的"],
            "exampleSentenceList": [
                {
                    "english": "He looked sad after the meeting.",
                    "chinese": "会议后他看起来很伤心。"
                }, {
                    "english": "She was sad to leave.",
                    "chinese": "她离开时感到很悲伤。"
                }, {
                    "english": "The sad news made everyone cry.",
                    "chinese": "悲伤的消息让大家都哭了。"
                }
            ]
        }, {
            "id": 4,
            "word": "beautiful",
            "meaningList": ["[形] 美丽的", "[形] 漂亮的"],
            "exampleSentenceList": [
                {
                    "english": "The sunset was beautiful.",
                    "chinese": "日落非常美丽。"
                }, {
                    "english": "She is beautiful.",
                    "chinese": "她很漂亮。"
                }, {
                    "english": "The flowers are beautiful in the garden.",
                    "chinese": "花园里的花非常漂亮。"
                }
            ]
        }, {
            "id": 5,
            "word": "strong",
            "meaningList": ["[形] 强壮的", "[形] 强有力的"],
            "exampleSentenceList": [
                {
                    "english": "He is very strong.",
                    "chinese": "他非常强壮。"
                }, {
                    "english": "The wind was strong.",
                    "chinese": "风很强。"
                }, {
                    "english": "She has a strong will.",
                    "chinese": "她意志坚强。"
                }
            ]
        }, {
            "id": 6,
            "word": "smart",
            "meaningList": ["[形] 聪明的", "[形] 机智的"],
            "exampleSentenceList": [
                {
                    "english": "He is very smart.",
                    "chinese": "他非常聪明。"
                }, {
                    "english": "She is smart and resourceful.",
                    "chinese": "她聪明且机智。"
                }, {
                    "english": "The solution was very smart.",
                    "chinese": "这个解决方案非常聪明。"
                }
            ]
        }, {
            "id": 7,
            "word": "kind",
            "meaningList": ["[形] 善良的", "[形] 和蔼的"],
            "exampleSentenceList": [
                {
                    "english": "He is a kind man.",
                    "chinese": "他是一个善良的人。"
                }, {
                    "english": "She was kind to everyone.",
                    "chinese": "她对每个人都很好。"
                }, {
                    "english": "The teacher is always kind.",
                    "chinese": "老师总是很和蔼。"
                }
            ]
        }, {
            "id": 8,
            "word": "tall",
            "meaningList": ["[形] 高的", "[形] 高大的"],
            "exampleSentenceList": [
                {
                    "english": "He is very tall.",
                    "chinese": "他非常高。"
                }, {
                    "english": "The tree is tall.",
                    "chinese": "树很高。"
                }, {
                    "english": "She is tall and elegant.",
                    "chinese": "她很高且优雅。"
                }
            ]
        }, {
            "id": 9,
            "word": "short",
            "meaningList": ["[形] 矮的", "[形] 短的"],
            "exampleSentenceList": [
                {
                    "english": "He is very short.",
                    "chinese": "他非常矮。"
                }, {
                    "english": "The story is short.",
                    "chinese": "这个故事很短。"
                }, {
                    "english": "She is short but cute.",
                    "chinese": "她很矮但很可爱。"
                }
            ]
        }, {
            "id": 10,
            "word": "big",
            "meaningList": ["[形] 大的", "[形] 巨大的"],
            "exampleSentenceList": [
                {
                    "english": "The room is big.",
                    "chinese": "这个房间很大。"
                }, {
                    "english": "The dog is big.",
                    "chinese": "这只狗很大。"
                }, {
                    "english": "The event was a big success.",
                    "chinese": "这个活动非常成功。"
                }
            ]
        }, {
            "id": 11,
            "word": "small",
            "meaningList": ["[形] 小的", "[形] 矮小的"],
            "exampleSentenceList": [
                {
                    "english": "The room is small.",
                    "chinese": "这个房间很小。"
                }, {
                    "english": "The dog is small.",
                    "chinese": "这只狗很小。"
                }, {
                    "english": "The town is small but charming.",
                    "chinese": "这个小镇很小但很可爱。"
                }
            ]
        }, {
            "id": 12,
            "word": "fast",
            "meaningList": ["[形] 快的", "[形] 迅速的"],
            "exampleSentenceList": [
                {
                    "english": "He runs very fast.",
                    "chinese": "他跑得非常快。"
                }, {
                    "english": "The car is fast.",
                    "chinese": "这辆车很快。"
                }, {
                    "english": "Time flies fast.",
                    "chinese": "时间过得很快。"
                }
            ]
        }, {
            "id": 13,
            "word": "slow",
            "meaningList": ["[形] 慢的", "[形] 缓慢的"],
            "exampleSentenceList": [
                {
                    "english": "He walks very slow.",
                    "chinese": "他走得很慢。"
                }, {
                    "english": "The car is slow.",
                    "chinese": "这辆车很慢。"
                }, {
                    "english": "Time moves slow when you're having fun.",
                    "chinese": "当你玩得开心时，时间过得很慢。"
                }
            ]
        }, {
            "id": 14,
            "word": "happy",
            "meaningList": ["[形] 快乐的", "[形] 幸福的"],
            "exampleSentenceList": [
                {
                    "english": "She looks very happy.",
                    "chinese": "她看起来很开心。"
                }, {
                    "english": "They are happy to be together.",
                    "chinese": "他们在一起很开心。"
                }, {
                    "english": "Being with family makes me happy.",
                    "chinese": "和家人在一起让我感到幸福。"
                }
            ]
        }, {
            "id": 15,
            "word": "excited",
            "meaningList": ["[形] 兴奋的", "[形] 激动的"],
            "exampleSentenceList": [
                {
                    "english": "He is excited about the trip.",
                    "chinese": "他对旅行很兴奋。"
                }, {
                    "english": "She was excited to see her friends.",
                    "chinese": "她见到朋友时很激动。"
                }, {
                    "english": "The children are excited for the party.",
                    "chinese": "孩子们对聚会很兴奋。"
                }
            ]
        }, {
            "id": 16,
            "word": "boring",
            "meaningList": ["[形] 无聊的", "[形] 无趣的"],
            "exampleSentenceList": [
                {
                    "english": "The movie was boring.",
                    "chinese": "这部电影很无聊。"
                }, {
                    "english": "He found the class boring.",
                    "chinese": "他认为这节课很无聊。"
                }, {
                    "english": "The task was boring and repetitive.",
                    "chinese": "这个任务很无聊且重复。"
                }
            ]
        }, {
            "id": 17,
            "word": "interesting",
            "meaningList": ["[形] 有趣的", "[形] 吸引人的"],
            "exampleSentenceList": [
                {
                    "english": "The book is very interesting.",
                    "chinese": "这本书非常有趣。"
                }, {
                    "english": "She found the topic interesting.",
                    "chinese": "她觉得这个话题很有趣。"
                }, {
                    "english": "The museum is interesting.",
                    "chinese": "这个博物馆很吸引人。"
                }
            ]
        }, {
            "id": 18,
            "word": "difficult",
            "meaningList": ["[形] 困难的", "[形] 复杂的"],
            "exampleSentenceList": [
                {
                    "english": "The problem is difficult.",
                    "chinese": "这个问题很难。"
                }, {
                    "english": "The task is difficult to complete.",
                    "chinese": "这个任务很难完成。"
                }, {
                    "english": "The math problem was difficult.",
                    "chinese": "这道数学题很难。"
                }
            ]
        }, {
            "id": 19,
            "word": "easy",
            "meaningList": ["[形] 容易的", "[形] 简单的"],
            "exampleSentenceList": [
                {
                    "english": "The problem is easy.",
                    "chinese": "这个问题很容易。"
                }, {
                    "english": "The task is easy to complete.",
                    "chinese": "这个任务很容易完成。"
                }, {
                    "english": "The math problem was easy.",
                    "chinese": "这道数学题很简单。"
                }
            ]
        }, {
            "id": 20,
            "word": "funny",
            "meaningList": ["[形] 滑稽的", "[形] 好笑的"],
            "exampleSentenceList": [
                {
                    "english": "The joke was funny.",
                    "chinese": "那个笑话很好笑。"
                }, {
                    "english": "She is a funny person.",
                    "chinese": "她是个滑稽的人。"
                }, {
                    "english": "The movie was funny and entertaining.",
                    "chinese": "这部电影很滑稽且有趣。"
                }
            ]
        }
    ]);
}